package com.liljhu30.microdianping.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liljhu30.microdianping.dto.Result;
import com.liljhu30.microdianping.entity.Blog;

/**
 * @author LilJHu
 * @create 2024/1/6
 * @desc 探店笔记服务层接口
 **/
public interface IBlogService extends IService<Blog> {

    Result queryHotBlog(Integer current);

    Result queryBlogById(Long id);

    Result likeBlog(Long id);

    Result queryBlogLikes(Long id);

    /**
     * 发布探店笔记
     *
     * @param blog
     * @return
     */
    Result saveBlog(Blog blog);

    Result queryBlogOfFollow(Long max, Integer offset);
}
